package com.jwdf.uda.ui.adapter.viewholder;

import android.databinding.DataBindingUtil;
import android.view.View;

import com.jwdf.uda.databinding.ItemReplyMainTimeBinding;
import com.jwdf.uda.ui.adapter.AbsViewHolder;
import com.jwdf.uda.ui.adapter.item.ReplyDetailItem;
import com.jwdf.uda.utils.DateUtils;

/**
 * Created by Administrator on 2016/9/20.
 */
public class ReplyMainCreateViewHolder extends AbsViewHolder<ReplyDetailItem>{
    private ItemReplyMainTimeBinding mItemBinding;

    public ReplyMainCreateViewHolder(View convertView) {
        super(convertView);
        mItemBinding = DataBindingUtil.bind(convertView);
    }

    @Override
    protected void onBindView(final ReplyDetailItem item) {
        mItemBinding.tvCreateTime.setText(DateUtils.getFriendlyTime(item.createTime));
    }
}
